<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="js/vue.min.js"></script>
<style type="text/css">
.red{color:red;}
.orange{color:orange;}
.yellow{color:yellow;}
</style>
</head>
<body>
<div id="myApp">
<h3>双向数据绑定</h3>
<input type="text" v-model="message">
{{message}}
<br>
<br>
<select v-model="curColor">
	<option value="red">red</option>
	<option value="orange">orange</option>
	<option value="yellow">yellow</option>
	<option value="green">green</option>
</select>
<span>{{curColor}}</span>
</div>
<script type="text/javascript">
var myApp = new Vue({
	el:"#myApp",
	data:{
		message:"赵子龙",
		curColor:'red',
	}
});
</script>
</body>
</html>